var React = require('react');

//
// <AppView viewTitle="视图标题">
//   ...
// </AppView>
//

module.exports = function AppView(props) {
  var hasNav = props.hasNav;
  var classNames = 'pure-view-container';
  if (hasNav === true) {
    classNames = classNames + ' x-view-has-nav';
  }
  return /*#__PURE__*/ React.createElement("div", {
    className: classNames
  }, typeof props.viewTitle === 'string' && props.viewTitle !== '' && /*#__PURE__*/ React.createElement("div", {
    className: "x-view-title"
  }, props.viewTitle), props.children);
};